package ws.jdbc.concurrent.driver.sqlserver.benchmark;

import ws.performancetest.api.TestSuite;

/**
 *
 * @author Wilson Santos, 36228 <wilson.santos@ua.pt>
 */
public class Benchmark {

  /** Flag to enable/disable benchmark points. */
  public static final boolean enabled = false;
  private static TestSuite testSuite;

  public static void setTestSuite(TestSuite testSuite) {
    Benchmark.testSuite = testSuite;
  }

  public static void addLog(String name, long time) {
    assert testSuite != null;

    testSuite.addLog(name, time);
  }
}
